% Quick Script to calculate the length of timing belt required, using HPC forumla.

% Parameters:

bigger_wheel_teeth = 84;
smaller_wheel_teeth = 16;
pitch = 2.5; % mm
distance_between_centres = 175; % mm

belt_length = (pitch/2)*(bigger_wheel_teeth + smaller_wheel_teeth) + 2*distance_between_centres + (1/(4*distance_between_centres))*( ((bigger_wheel_teeth - smaller_wheel_teeth)*pitch)/pi )^2